package com.zx.framework.plat.area.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Area entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="s_area")

public class Area  implements java.io.Serializable {


    // Fields    

     private String id;
     private String owner;
     private String name;
     private String code;
     private String code1;
     private String type;
     private String layer;


    // Constructors

    /** default constructor */
    public Area() {
    }

	/** minimal constructor */
    public Area(String id, String owner, String name, String code, String type, String layer) {
        this.id = id;
        this.owner = owner;
        this.name = name;
        this.code = code;
        this.type = type;
        this.layer = layer;
    }
    
    /** full constructor */
    public Area(String id, String owner, String name, String code, String code1, String type, String layer) {
        this.id = id;
        this.owner = owner;
        this.name = name;
        this.code = code;
        this.code1 = code1;
        this.type = type;
        this.layer = layer;
    }

   
    // Property accessors
    @Id 
    
    @Column(name="ID", unique=true, nullable=false, length=64)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="OWNER", nullable=false, length=64)

    public String getOwner() {
        return this.owner;
    }
    
    public void setOwner(String owner) {
        this.owner = owner;
    }
    
    @Column(name="NAME", nullable=false, length=64)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="CODE", nullable=false, length=64)

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="CODE1", length=64)

    public String getCode1() {
        return this.code1;
    }
    
    public void setCode1(String code1) {
        this.code1 = code1;
    }
    
    @Column(name="TYPE", nullable=false, length=64)

    public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    @Column(name="LAYER", nullable=false, length=64)

    public String getLayer() {
        return this.layer;
    }
    
    public void setLayer(String layer) {
        this.layer = layer;
    }
   








}